package com.ruoyi.door.controller.admin.dept.vo;

import lombok.Data;
import lombok.ToString;

/**
 * 部门导入数据值对象
 */
@Data
@ToString
public class DoorDeptImportVO {

    /**
     * 国家名称
     */
    private String countryName;

    /**
     * 省份名称
     */
    private String provinceName;

    /**
     * 城市名称
     */
    private String cityName;

    /**
     * 区/县名称
     */
    private String districtName;

    /**
     * 街道/镇名称
     */
    private String streetName;

    /**
     * 村/社区名称
     */
    private String villageName;

    /**
     * 备注
     */
    private String remark;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        if (countryName != null) {
            sb.append(countryName);
        }
        if (provinceName != null) {
            sb.append("-").append(provinceName);
        }
        if (cityName != null) {
            sb.append("-").append(cityName);
        }
        if (districtName != null) {
            sb.append("-").append(districtName);
        }
        if (streetName != null) {
            sb.append("-").append(streetName);
        }
        if (villageName != null) {
            sb.append("-").append(villageName);
        }
        return sb.toString();
    }
}
